package com.yc.backstage.service;

import com.yc.backstage.entity.SysUser;
import com.yc.backstage.entity.SysUserPost;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @Classname SysUserPostController
* @Description
* @Version 1.0.0
* @Date 2022-08-23 11:49:19
* @Created by Mikechen
*/
public interface SysUserPostService extends IService<SysUserPost> {

    /**
     * 新增用户岗位关联
     * @param user
     */
    void insertUserPost(SysUser user);
    /**
     * 通过用户ID删除用户和岗位关联
     *
     * @param userId 用户ID
     * @return 结果
     */
     int deleteUserPostByUserId(Long userId);

    /**
     * 批量删除用户和岗位关联
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    int deleteUserPost(List<Long> ids);
}
